/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  09/09/21 21:01:24
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  XXXXXXX (), liushuyong@yidao.com
 *        Company:  YiDao
 *        Copyright:  Copyright 2021, XXXXXXX
 *
 * =====================================================================================
 */
#include <string>
#include <thread>
#include <iostream>

#include "Emperor1.h"
#include "Emperor2.h"
#include <vector>
#include "Maid.h"
#include "Minister.h"

using namespace std;

void proc(int n) {
    cout << "n=" << n << endl;

    while (true) {
        cout << "thread=" << this_thread::get_id << ", n=" << n << endl;
        this_thread::sleep_for(chrono::milliseconds(1000));
    }
}

int main() {
    vector < Maid > MaidVec;    //侍女列表
    vector < Minister > MinisterVec;    //大臣列表
    thread thread_1(proc, 1);
    thread thread_2(proc, 2);
    thread_1.join();
    thread_2.join();
    cout << "exit" << endl;
}
